﻿// SMIL is a community project available under the Microsoft Public License (Ms-PL)
// Code is provided as is and with no warrenty – Use at your own risk
// View the project and the latest code at http://smil.codeplex.com/

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using SMIL.Server.SPGeoRssCommonTypes;
using SMIL.Server.SPGeoRssCore;

using core = SMIL.Server.SPGeoRssCore;

namespace SMIL.Server.SPGeoRss
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://georss.smil/v1")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]
    public class SPGeoRssSI : ISPGeoRss
    {
        [WebMethod]
        public LayersResponse GetLayerList(LayersRequest layersRequest)
        {
            core.SPGeoRss geoRss = new core.SPGeoRss();
            return geoRss.GetLayerList(layersRequest);
        }

        [WebMethod]
        public GeoRss GetGeoRssForLayer(LayerRequest layerRequest)
        {
            core.SPGeoRss geoRss = new core.SPGeoRss();
            return geoRss.GetGeoRssForLayer(layerRequest);

        }

        [WebMethod]
        public ItemDetailResponse GetSPItemDetail(ItemDetailRequest itemDetailRequest)
        {
            core.SPGeoRss geoRss = new core.SPGeoRss();
            return geoRss.GetSPItemDetail(itemDetailRequest);
        }

        [WebMethod]
        public System.Xml.XmlDocument GetLayer(LayerRequest layerRequest)
        {
            throw new NotImplementedException();
        }
    }
}
